// 项目通用的 API
import request from "@/utils/request";
import {getToken} from "@/utils/localData";

export const uploadfilesAPI = (data) =>
	request({
		method: "post",
		url: "/upload",
		data, // 上传文件时候，需要用到formdata
		// axios 不需要设置假CP 会自己识别formdata对象
		headers: {Authorization: getToken()},
	});
